package com.design;

import java.math.BigDecimal;

/**
 * 测试类
 */
public class MainTest {
    public static void main(String[] args) {
        OrderPay orderPay = new OrderPay();
        orderPay.setPayment(new AliPayment());
        orderPay.payOrder(new BigDecimal("100.00"));

        orderPay.setPayment(new WeiXinPayment());
        orderPay.payOrder(new BigDecimal("200.00"));
    }
}
